home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 63 | 68 68 2e 73 69 65 6d 65 |Path: mc|hh.sieme|
|00000010| 6e 73 2e 64 65 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |ns.de!ne|ws.From:|
|00000020| 20 52 6f 6e 61 6c 64 20 | 46 69 73 63 68 65 72 20 | Ronald |Fischer |
|00000030| 3c 72 6f 6e 61 6c 64 2e | 66 69 73 63 68 65 72 40 |<ronald.|fischer@|
|00000040| 75 65 62 65 6d 63 2e 73 | 69 65 6d 65 6e 73 2e 64 |uebemc.s|iemens.d|
|00000050| 65 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |e>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 4e 65 65 64 20 73 |ject: Re|: Need s|
|00000080| 6f 6d 65 20 73 69 6d 70 | 6c 65 20 68 65 6c 70 20 |ome simp|le help |
|00000090| 77 69 74 68 20 43 2b 2b | 0a 44 61 74 65 3a 20 32 |with C++|.Date: 2|
|000000a0| 33 20 46 65 62 20 31 39 | 39 36 20 30 37 3a 32 39 |3 Feb 19|96 07:29|
|000000b0| 3a 35 32 20 47 4d 54 0a | 4f 72 67 61 6e 69 7a 61 |:52 GMT.|Organiza|
|000000c0| 74 69 6f 6e 3a 20 53 69 | 65 6d 65 6e 73 20 41 47 |tion: Si|emens AG|
|000000d0| 2c 28 48 6f 66 6d 61 6e | 6e 73 74 72 29 20 20 4d |,(Hofman|nstr) M|
|000000e0| 75 6e 69 63 68 2d 47 65 | 72 6d 61 6e 79 2d 45 75 |unich-Ge|rmany-Eu|
|000000f0| 72 6f 70 65 2e 0a 4d 65 | 73 73 61 67 65 2d 49 44 |rope..Me|ssage-ID|
|00000100| 3a 20 3c 34 67 6a 71 64 | 67 24 6c 65 35 40 6d 6f |: <4gjqd|g$le5@mo|
|00000110| 6f 64 79 2e 6d 63 68 68 | 2e 73 69 65 6d 65 6e 73 |ody.mchh|.siemens|
|00000120| 2e 64 65 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |.de>.Ref|erences:|
|00000130| 20 3c 34 67 69 38 31 6b | 24 65 62 62 40 73 70 68 | <4gi81k|$ebb@sph|
|00000140| 69 6e 78 2e 47 73 75 2e | 45 44 55 3e 0a 4e 4e 54 |inx.Gsu.|EDU>.NNT|
|00000150| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|00000160| 74 68 65 6d 73 65 2e 6d | 63 68 68 2e 73 69 65 6d |themse.m|chh.siem|
|00000170| 65 6e 73 2e 64 65 0a 4d | 69 6d 65 2d 56 65 72 73 |ens.de.M|ime-Vers|
|00000180| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|00000190| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|000001a0| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001b0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001c0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|000001d0| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|000001e0| 7a 69 6c 6c 61 20 31 2e | 31 4e 20 28 58 31 31 3b |zilla 1.|1N (X11;|
|000001f0| 20 49 3b 20 53 75 6e 4f | 53 20 35 2e 33 20 73 75 | I; SunO|S 5.3 su|
|00000200| 6e 34 6d 29 0a 54 6f 3a | 20 67 73 30 31 6c 6d 68 |n4m).To:| gs01lmh|
|00000210| 40 70 61 6e 74 68 65 72 | 2e 47 73 75 2e 45 44 55 |@panther|.Gsu.EDU|
|00000220| 0a 58 2d 55 52 4c 3a 20 | 6e 65 77 73 3a 34 67 69 |.X-URL: |news:4gi|
|00000230| 38 31 6b 24 65 62 62 40 | 73 70 68 69 6e 78 2e 47 |81k$ebb@|sphinx.G|
|00000240| 73 75 2e 45 44 55 0a 0a | 67 73 30 31 6c 6d 68 40 |su.EDU..|gs01lmh@|
|00000250| 70 61 6e 74 68 65 72 2e | 47 73 75 2e 45 44 55 20 |panther.|Gsu.EDU |
|00000260| 28 4c 6f 75 69 73 20 4d | 69 6c 6c 65 72 20 48 61 |(Louis M|iller Ha|
|00000270| 6c 6c 29 20 77 72 6f 74 | 65 3a 0a 3e 49 20 61 6d |ll) wrot|e:.>I am|
|00000280| 20 68 61 76 69 6e 67 20 | 61 20 70 72 6f 62 6c 65 | having |a proble|
|00000290| 6d 20 67 65 74 74 69 6e | 67 20 74 68 65 20 66 6f |m gettin|g the fo|
|000002a0| 6c 6c 6f 77 69 6e 67 20 | 63 6f 64 65 20 74 6f 20 |llowing |code to |
|000002b0| 72 65 75 73 65 20 61 20 | 73 74 72 69 6e 67 20 73 |reuse a |string s|
|000002c0| 6f 20 0a 3e 74 68 61 74 | 20 49 20 63 61 6e 20 70 |o .>that| I can p|
|000002d0| 75 74 20 61 6e 64 20 70 | 72 69 6e 74 20 76 61 72 |ut and p|rint var|
|000002e0| 69 6f 75 73 20 69 6e 66 | 6f 20 69 6e 74 6f 20 69 |ious inf|o into i|
|000002f0| 74 2c 20 77 68 65 6e 20 | 74 68 65 20 70 72 6f 67 |t, when |the prog|
|00000300| 72 61 6d 20 72 75 6e 73 | 2c 20 69 74 20 0a 3e 77 |ram runs|, it .>w|
|00000310| 69 6c 6c 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |ill succ|essfully|
|00000320| 20 6f 75 74 70 75 74 20 | 74 68 65 20 64 61 74 61 | output |the data|
|00000330| 20 74 68 65 20 66 69 72 | 73 74 20 74 69 6d 65 20 | the fir|st time |
|00000340| 74 68 72 6f 75 67 68 20 | 74 68 65 20 6c 6f 6f 70 |through |the loop|
|00000350| 2c 20 62 75 74 20 0a 3e | 61 66 74 65 72 20 74 68 |, but .>|after th|
|00000360| 61 74 2c 20 69 74 20 77 | 69 6c 6c 20 63 6f 6e 74 |at, it w|ill cont|
|00000370| 69 6e 75 65 20 74 6f 20 | 72 75 6e 2c 20 62 75 74 |inue to |run, but|
|00000380| 20 6e 6f 74 20 61 6c 6c | 6f 77 20 79 6f 75 20 74 | not all|ow you t|
|00000390| 6f 20 65 6e 74 65 72 20 | 61 6e 6f 74 68 65 72 20 |o enter |another |
|000003a0| 0a 3e 73 74 72 69 6e 67 | 2c 20 61 6e 64 20 6d 6f |.>string|, and mo|
|000003b0| 72 65 6f 76 65 72 20 6f | 75 74 70 75 74 73 20 61 |reover o|utputs a|
|000003c0| 6e 20 65 6d 70 74 79 20 | 73 74 72 69 6e 67 3f 3f |n empty |string??|
|000003d0| 21 21 21 3f 20 43 61 6e | 20 61 6e 79 62 6f 64 79 |!!!? Can| anybody|
|000003e0| 20 74 65 6c 6c 20 6d 65 | 20 0a 3e 77 68 61 74 20 | tell me| .>what |
|000003f0| 49 20 61 6d 20 64 6f 69 | 6e 67 20 77 72 6f 6e 67 |I am doi|ng wrong|
|00000400| 3a 0a 3e 0a 3e 23 69 6e | 63 6c 75 64 65 20 3c 66 |:.>.>#in|clude <f|
|00000410| 73 74 72 65 61 6d 2e 68 | 3e 0a 3e 0a 3e 63 68 61 |stream.h|>.>.>cha|
|00000420| 72 20 2a 6e 61 6d 65 3b | 0a 3e 69 6e 74 20 20 61 |r *name;|.>int a|
|00000430| 20 3d 20 31 3b 0a 3e 0a | 3e 76 6f 69 64 20 6d 61 | = 1;.>.|>void ma|
|00000440| 69 6e 20 28 29 0a 3e 20 | 20 7b 0a 3e 20 20 77 68 |in ().> | {.> wh|
|00000450| 69 6c 65 20 28 61 29 0a | 3e 20 20 20 20 7b 0a 3e |ile (a).|> {.>|
|00000460| 20 20 20 20 6e 61 6d 65 | 20 3d 20 6e 65 77 20 63 | name| = new c|
|00000470| 68 61 72 5b 38 30 5d 3b | 0a 3e 20 20 20 20 63 6f |har[80];|.> co|
|00000480| 75 74 20 3c 3c 20 22 57 | 68 61 74 20 69 73 20 74 |ut << "W|hat is t|
|00000490| 68 65 20 73 74 72 69 6e | 67 20 3e 22 20 3c 3c 20 |he strin|g >" << |
|000004a0| 65 6e 64 6c 3b 0a 3e 20 | 20 20 20 63 69 6e 2e 67 |endl;.> | cin.g|
|000004b0| 65 74 6c 69 6e 65 28 6e | 61 6d 65 2c 20 38 30 29 |etline(n|ame, 80)|
|000004c0| 3b 0a 3e 20 20 20 20 63 | 6f 75 74 20 3c 3c 20 22 |;.> c|out << "|
|000004d0| 54 68 65 20 73 74 72 69 | 6e 67 20 65 6e 74 65 72 |The stri|ng enter|
|000004e0| 65 64 20 69 73 20 3e 22 | 20 3c 3c 20 6e 61 6d 65 |ed is >"| << name|
|000004f0| 20 3c 3c 20 65 6e 64 6c | 3b 0a 3e 20 20 20 20 63 | << endl|;.> c|
|00000500| 6f 75 74 20 3c 3c 20 22 | 45 6e 74 65 72 20 30 20 |out << "|Enter 0 |
|00000510| 74 6f 20 71 75 69 74 2c | 20 61 6e 79 20 6f 74 68 |to quit,| any oth|
|00000520| 65 72 20 74 6f 20 63 6f | 6e 74 69 6e 75 65 3e 22 |er to co|ntinue>"|
|00000530| 3b 0a 3e 20 20 20 20 63 | 69 6e 20 3e 3e 20 61 3b |;.> c|in >> a;|
|00000540| 0a 3e 20 20 20 20 64 65 | 6c 65 74 65 20 6e 61 6d |.> de|lete nam|
|00000550| 65 3b 20 20 2f 2f 20 77 | 69 6c 6c 20 77 6f 72 6b |e; // w|ill work|
|00000560| 20 74 68 65 20 73 61 6d | 65 20 77 69 74 68 20 6f | the sam|e with o|
|00000570| 72 20 77 69 74 68 6f 75 | 74 20 74 68 69 73 0a 3e |r withou|t this.>|
|00000580| 20 20 20 20 7d 20 20 2f | 2f 20 77 68 69 6c 65 0a | } /|/ while.|
|00000590| 3e 20 20 7d 20 20 2f 2f | 20 6d 61 69 6e 0a 3e 0a |> } //| main.>.|
|000005a0| 3e 49 20 68 61 76 65 20 | 61 6c 73 6f 20 74 72 69 |>I have |also tri|
|000005b0| 65 64 20 75 73 69 6e 67 | 20 63 68 61 72 20 6e 61 |ed using| char na|
|000005c0| 6d 65 5b 38 30 5d 3b 20 | 62 75 74 20 74 68 69 73 |me[80]; |but this|
|000005d0| 20 74 6f 6f 20 66 61 69 | 6c 73 2c 20 49 20 61 6d | too fai|ls, I am|
|000005e0| 20 74 72 79 69 6e 67 20 | 74 6f 20 0a 3e 74 65 61 | trying |to .>tea|
|000005f0| 63 68 20 6d 79 73 65 6c | 66 20 43 2b 2b 2c 20 61 |ch mysel|f C++, a|
|00000600| 6e 64 20 61 6e 79 20 61 | 64 64 74 69 6f 6e 61 6c |nd any a|ddtional|
|00000610| 20 68 65 6c 70 20 49 20 | 63 6f 75 6c 64 20 67 65 | help I |could ge|
|00000620| 74 20 77 6f 75 6c 64 20 | 62 65 20 0a 3e 61 70 70 |t would |be .>app|
|00000630| 72 65 63 69 61 74 65 64 | 2e 20 20 0a 3e 0a 3e 54 |reciated|. .>.>T|
|00000640| 68 61 6e 6b 73 0a 3e 0a | 49 4d 4f 20 69 74 20 64 |hanks.>.|IMO it d|
|00000650| 6f 65 73 20 6e 6f 74 20 | 77 6f 72 6b 20 62 65 63 |oes not |work bec|
|00000660| 61 75 73 65 20 69 73 74 | 72 65 61 6d 3a 3a 67 65 |ause ist|ream::ge|
|00000670| 74 6c 69 6e 65 20 64 6f | 65 73 20 6e 6f 74 20 65 |tline do|es not e|
|00000680| 78 74 72 61 63 74 20 74 | 68 65 20 5c 6e 20 66 72 |xtract t|he \n fr|
|00000690| 6f 6d 20 74 68 65 0a 69 | 6e 70 75 74 20 73 74 72 |om the.i|nput str|
|000006a0| 65 61 6d 3b 20 69 73 74 | 72 65 61 6d 3a 3a 6f 70 |eam; ist|ream::op|
|000006b0| 65 72 61 74 6f 72 3e 3e | 20 74 68 65 72 65 66 6f |erator>>| therefo|
|000006c0| 72 65 20 73 65 65 73 20 | 74 68 65 20 5c 6e 20 61 |re sees |the \n a|
|000006d0| 73 20 74 68 65 20 6e 65 | 78 74 20 63 68 61 72 61 |s the ne|xt chara|
|000006e0| 63 74 65 72 0a 61 6e 64 | 20 74 68 65 72 65 66 6f |cter.and| therefo|
|000006f0| 72 65 20 64 6f 65 73 20 | 6e 6f 74 20 65 78 74 72 |re does |not extr|
|00000700| 61 63 74 20 74 68 65 20 | 69 6e 74 2e 20 49 20 73 |act the |int. I s|
|00000710| 75 67 67 65 73 74 20 74 | 6f 20 63 68 65 63 6b 20 |uggest t|o check |
|00000720| 74 68 65 20 69 6f 73 3a | 3a 69 6f 5f 73 74 61 74 |the ios:|:io_stat|
|00000730| 65 0a 61 66 74 65 72 20 | 65 61 63 68 20 65 78 74 |e.after |each ext|
|00000740| 72 61 63 74 69 6f 6e 20 | 6f 70 65 72 61 74 69 6f |raction |operatio|
|00000750| 6e 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 20 62 |n, for e|xample b|
|00000760| 79 20 63 61 6c 6c 69 6e | 67 20 63 69 6e 2e 66 61 |y callin|g cin.fa|
|00000770| 69 6c 28 29 2e 0a 0a 42 | 54 57 3a 20 54 68 65 20 |il()...B|TW: The |
|00000780| 6f 70 65 72 61 74 69 6f | 6e 20 74 6f 20 66 72 65 |operatio|n to fre|
|00000790| 65 20 74 68 65 20 61 6c | 6c 6f 63 61 74 65 64 20 |e the al|located |
|000007a0| 6d 65 6d 6f 72 79 20 69 | 73 20 6e 6f 74 20 28 64 |memory i|s not (d|
|000007b0| 65 6c 65 74 65 20 6e 61 | 6d 65 29 2c 0a 62 75 74 |elete na|me),.but|
|000007c0| 20 28 64 65 6c 65 74 65 | 20 5b 5d 20 6e 61 6d 65 | (delete| [] name|
|000007d0| 29 2e 0a 0a 52 6f 6e 61 | 6c 64 0a 0a |)...Rona|ld.. |
+--------+-------------------------+-------------------------+--------+--------+